home *** CD-ROM | disk | FTP | other *** search
- function loadPdBookmarks()
- {
- if(_root.pd_bm_object == undefined)
- {
- var _loc2_ = _root.fsp_path + _root.folder + "config/bookmarks.xml";
- _root.pd_bm_xml = new XML();
- _root.pd_bm_xml.ignoreWhite = true;
- _root.pd_bm_xml.onLoad = function(success)
- {
- clearInterval(check_interval);
- enableControler_BmFunctions(true);
- if(success)
- {
- parsePdBmXML();
- }
- else
- {
- _root.pd_bm_object = new Object();
- loadBookmarks();
- }
- };
- if(_root.client_os != "Windows" && _root.useFSP_path == "true")
- {
- check_interval = setInterval(abortLoad,4000);
- }
- _root.pd_bm_xml.load(_loc2_);
- }
- else
- {
- renderBookmarks();
- }
- }
- function abortLoad()
- {
- clearInterval(check_interval);
- _root.pd_bm_object = new Object();
- renderBookmarks();
- }
- function parsePdBmXML()
- {
- _root.pd_bm_object = new Object();
- var _loc6_ = _root.pd_bm_xml.firstChild.firstChild;
- while(_loc6_ != null)
- {
- var _loc8_ = String(_loc6_.attributes.name).split(".")[0];
- var _loc7_ = new Array();
- var _loc3_ = _loc6_.firstChild;
- while(_loc3_ != null)
- {
- var _loc2_ = new Object();
- var _loc4_ = _loc3_.attributes.timecode.split(":");
- var _loc5_ = Number(_loc4_[0]) * 60 + Number(_loc4_[1]);
- _loc2_.sec = _loc5_;
- _loc2_.description = _loc3_.attributes.headline;
- _loc2_.memo = _loc3_.firstChild.nodeValue;
- _loc2_.memo = _loc2_.memo.split(String.fromCharCode(13)).join("");
- if(_loc2_.memo == undefined)
- {
- _loc2_.memo = "";
- }
- _loc2_.pd = true;
- _loc7_.push(_loc2_);
- _loc3_ = _loc3_.nextSibling;
- }
- _root.pd_bm_object[_loc8_] = _loc7_;
- _loc6_ = _loc6_.nextSibling;
- }
- renderBookmarks();
- }
-